/* 滚动槽 */
:root {
    --rdg-border-color: #ddd;
    --border-color: #ddd;
    --rdg-header-background-color: hsl(0deg 0% 97.5%);
    --rdg-grid-row-start: 3;
    --rdg-row-height: 30px;
    --rdg-selection-color: #66afe9;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.08);
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: aliceblue;
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.x-table {
    min-width: 200px;
    border-collapse:collapse;
    outline: none;
    width: 100%;
}

.x-table .pre-selected-row {
    background: aliceblue;
}

.x-table .selected-row {
    background: var(--rdg-selection-color);
    color: white;
}

.x-table tbody {
    max-height: 100px;
    overflow: hidden;
}
.custom-select-wrapper .data-grid {
    max-height: 200px;
    overflow: auto;
}
.x-table table {
    border-collapse: collapse;

}

.data-grid-container {
    display: inline-block;
    width: 100%;
    border-block-start: 1px solid var(--rdg-border-color);
    border-inline-start: 1px solid var(--rdg-border-color);
    background: whitesmoke;
}

.data-grid-container .gridrow {
    display: flex;
}

.x-table {
    background: white;
}

.data-grid-container .table-header{
    background: var(--rdg-header-background-color);
}

.data-grid-container .gridrow .last-cell {
    flex: 1;
}

/* 定义表头的边框样式 */
.x-table th {
    border: 1px solid var(--border-color);
    text-align: left;
    font-weight: bolder;
    background-color: var(--rdg-header-background-color);
    font-size: small;
}
.data-grid-container .td-container {
    border-inline-end: 1px solid var(--rdg-border-color);
    border-block-end: 1px solid var(--rdg-border-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: small;
    height: var(--rdg-row-height);

}

.checkbox-cell {
    border-inline-end: 1px solid var(--rdg-border-color);
    border-block-end: 1px solid var(--rdg-border-color);
    line-height: var(--rdg-row-height);
}
.checkbox-cell input[type=checkbox] {
    width: 15px;
    height: 15px;
}
/* 定义表格的单元格边框样式 */
.x-table td {
    font-size: 1em;
    border: 1px solid var(--border-color);
}

.x-table td.editable-cell {
}

.x-table .selected-cell {
    outline: 2px solid var(--rdg-selection-color);
    outline-offset: -2px;
}

.x-table input[type=text] {
    border: none;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    background: beige;
    padding-left: 8px;
    line-height: var(--rdg-row-height);
}

.td-container .x-select-wrapper{
    height: var(--rdg-row-height);
}
.td-container .x-select-wrapper .dropdown-arrow {
    line-height: var(--rdg-row-height);
    background: var(--rdg-header-background-color);
}
.x-table input:focus {
    outline: none; /* 取消获取焦点时的外边框 */
}

.x-table .td-text {
    padding-block: 0;
    padding-inline: 8px;
    grid-row-start: var(--rdg-grid-row-start);
    background-color: inherit;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
    line-height: var(--rdg-row-height);
}